We have a ref when creating the `device` object, use that for inserting
into the hash table as otherwise we leak that reference.
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Applied-upstream: gnome-shell 49.4, commit:
d0e1664ac6278b70a7e26bf8135f0d1d92ee1e9f
Gbp-Pq: Topic libgvc
Gbp-Pq: Name mixer-control-Don-t-leak-ui-device.patch
g_hash_table_insert (is_output ? control->priv->ui_outputs : control->priv->ui_inputs,
GUINT_TO_POINTER (gvc_mixer_ui_device_get_id (device)),
- g_object_ref (device));
+ device);
g_signal_emit (G_OBJECT (control),
signals[is_output ? OUTPUT_ADDED : INPUT_ADDED],